package org.shijiagen.manager.controller;

import lombok.RequiredArgsConstructor;
import org.shijiagen.manager.service.OrderService;
import org.shijiagen.param.PageParam;
import org.shijiagen.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("order")
@RequiredArgsConstructor
public class OrderController {

    private final OrderService orderService;

    @GetMapping("list")
    public R list(PageParam pageParam){
        return orderService.list(pageParam);
    }
}
